package cn.wolfcode.crm.domain;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.HashMap;


@Setter
@Getter
@ToString
public class Department {
    private Long id;
    private String name;
    private String sn;


    //该方法是用于编辑按钮
    public String getJson(){
        HashMap map = new HashMap();
        map.put("id",this.id);
        map.put("name",this.name);
        map.put("sn",this.sn);
        return JSON.toJSONString(map);
    }
}